package logic

import (
	"context"

	"mall/service/mqueue/scheduler/internal/svc"
)

type MqueueScheduler struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewMqueueScheduler(ctx context.Context, svcCtx *svc.ServiceContext) *MqueueScheduler {
	return &MqueueScheduler{
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *MqueueScheduler) RegisterSchedulers() {
	l.settleRecord()
	l.scanAttachmentLog()
	l.publishKbEntry()
	l.publishPost()
	l.scanPromotionActivity()
	l.scanPromotionCoupon()
	l.scanUpdatedGorseCache()
	l.periodicityClearIntegralCache()
}
